Skip to content
This repository has been archived by the owner on Apr 10, 2021. It is now read-only.

Suppport for EditorConfig files with names #61

Merged
merged 3 commits into from
Mar 24, 2015

Conversation

Yserz
Copy link
Member

@Yserz Yserz commented Mar 23, 2015

immediately apply editorconfig when found + cleanup of listener structure

@Yserz
Copy link
Member Author

Yserz commented Mar 23, 2015

This pull request depends on pull request #60 for full functionality (but no merge conflicts)

@bennycode
Copy link
Member

Does it mean we don't need to restart the IDE anymore after loading the plugin? And do we need to reopen a project when a new *.editorconfig file is added or will it be just immediately evaluated?

@@ -5,6 +5,7 @@
public final class Settings {

public static final String MIME_TYPE = "text/x-editorconfig"; // NOI18N
public static final String EXTENSION = "editorconfig"; // NOI18N
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lines marked with #NOI18N or other applicable comments on line before a given message/label or group of them denotes what items not to translate for cases where it is not completely obvious that something should not be translated.`

I doubt that we need the NOI18N declaration in a settings file because there is no translation for a MIME type, Extension and / or resource path.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Think of an automatic approach of translating text within sourcecode (or at least separating). I don't think theres something wrong with that comment since the guys from the JDK for example do it the same way. :)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Always keep it simple. There is NO automatic text translation right now and it makes NO sense to translate a MIME type. The documentation says you should use NOI18N when it is not completely obvious that something should not be translated and in this case it is obvious. So it's pointless to use NOI18N here.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Yserz
Copy link
Member Author

Yserz commented Mar 24, 2015

"Does it mean we don't need to restart the IDE anymore after loading the plugin?"
After the installation of the plugin we still have to restart the IDE but all other things you mentioned should apply. An editorconfig file will be immediately applied as soon as it is created. (no restart/reopen)

@bennycode
Copy link
Member

Woohoo! Like it!!

@bennycode bennycode changed the title Issue 43 new editorconfig Immediately evaluate new .editorconfig files Mar 24, 2015
bennycode added a commit that referenced this pull request Mar 24, 2015
Immediately evaluate new .editorconfig files
@bennycode bennycode merged commit 346aab6 into master Mar 24, 2015
@bennycode bennycode deleted the issue-43-new-editorconfig branch March 24, 2015 15:00
@bennycode bennycode modified the milestones: Backlog, v0.0.5 Mar 29, 2015
@bennycode bennycode changed the title Immediately evaluate new .editorconfig files Suppport for EditorConfig files with names Mar 29, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants